﻿/*
 * =====================================================================================
 *
 *       Filename:  ConsoleHelper.cs
 *
 *    Description:  控制台助手类
 *
 *        Version:  1.0
 *        Created:  
 *       Revision:  none
 *       Compiler:  
 *
 *         Author:   imbedinlove
 *        Company:  
 *       EditTime:  2014年6月10日 09:38:33
 *
 * =====================================================================================

 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ImbedLibrary
{
    public class ConsoleEx
    {
        /// <summary>
        /// 带颜色的文字输出
        /// </summary>
        /// <param name="color">文字颜色</param>
        /// <param name="text">文字</param>
        public static void ColoredConsoleWrite(ConsoleColor color,string text)
        {
            Console.ForegroundColor = color;
            Console.WriteLine(text);
            Console.ForegroundColor = ConsoleColor.Gray;
        }
    }
}
